package huawei.exam5;

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

/**
 * @author : Rookie
 * @description :
 * @date : 2022/12/30
 */
public class HJ105 {

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        List<Integer> nums = new ArrayList<>();
        while (in.hasNextInt()) {
            nums.add(in.nextInt());
        }
        long count = nums.parallelStream().filter(integer -> integer < 0).count();
        System.out.println(count);
        long ffsCount = nums.size() - count;
        if (ffsCount > 0) {
            nums.parallelStream().filter(integer -> integer >= 0).reduce(Integer::sum)
                    .ifPresent(sum -> {
                        System.out.printf("%.1f",(sum.floatValue())/ffsCount);
                    });
        } else {
            System.out.println(0.0);
        }
    }
}
